import 'package:json_annotation/json_annotation.dart';
import 'package:xindong/common/xindong_types.dart';

part 'xindong_custom_message.g.dart';

// 聊天自定义消息模型
@JsonSerializable()
class XinDongCustomMessage {
  dynamic type; // CustomMessageType GroupMessageType
  dynamic chat_type;
  dynamic second;
  dynamic score;
  dynamic content;
  dynamic duration;
  dynamic duration_text;
  dynamic cover;
  dynamic order_id;
  dynamic order_num;
  dynamic data; // XinDongGiftChatClass

  XinDongCustomMessage({this.type, this.content});

  factory XinDongCustomMessage.fromJson(Map<String, dynamic> json) => _$XinDongCustomMessageFromJson(json);

  Map<String, dynamic> toJson() => _$XinDongCustomMessageToJson(this);
}
